﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcBookingTour.Models.UserProfile>" %>

<asp:Content ID="editphofileTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Edit Profile
</asp:Content>

<asp:Content ID="editphofileContent" ContentPlaceHolderID="MainContent" runat="server">
    <hgroup class="title">
        <h1>Edit Profile.</h1>
    </hgroup>

    <% using (Html.BeginForm()) { %>
        <%: Html.AntiForgeryToken() %>
        <%: Html.ValidationSummary() %>
        
        <fieldset>
            <legend>User Profile</legend>
            <ol>
                <li>
                    <%: Html.LabelFor(m => m.UserName) %>
                    <%: Html.DisplayFor(m => m.UserName) %>
                </li>
                <li>
                    <%: Html.LabelFor(m => m.Email) %>
                    <%: Html.EditorFor(m => m.Email) %>
                </li>
                <li>
                    <%: Html.LabelFor(m => m.FullName) %>
                    <%: Html.EditorFor(m => m.FullName)%>
                </li>
                <li>
                    <%: Html.LabelFor(m => m.Birthday) %>
                    <%: Html.EditorFor(m => m.Birthday)%>
                </li>
                <li>
                    <%: Html.LabelFor(m => m.Sex) %>
                    Nam:<%: Html.RadioButtonFor(m=>m.Sex,"true") %>
                    Nữ:<%: Html.RadioButtonFor(m=>m.Sex,"false") %>
                </li>
                <li>
                    <%: Html.LabelFor(m => m.Phone) %>
                    <%: Html.EditorFor(m => m.Phone) %>
                </li>
                
                <li>
                    <%: Html.LabelFor(m => m.Address) %>
                    <%: Html.EditorFor(m => m.Address) %>
                </li>
                <li>
                    <%: Html.LabelFor(m => m.Company) %>
                    <%: Html.EditorFor(m => m.Company) %>
                </li>
            </ol>
            <input type="submit" value="Save" />
        </fieldset>
    <% } %>
</asp:Content>

<asp:Content ID="scriptsContent" ContentPlaceHolderID="ScriptsSection" runat="server">
    <%: Scripts.Render("~/bundles/jqueryval") %>
</asp:Content>
